package com.xjtu.mapper;

import com.github.pagehelper.Page;
import com.xjtu.dto.UserPageDto;
import com.xjtu.entity.User;
import com.xjtu.vo.UserVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author 2070929887
* @description 针对表【user】的数据库操作Mapper
* @createDate 2023-11-12 14:47:30
* @Entity com.xjtu.mapper.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Select("select * from user where phone = #{phoneNumber}")
    User queryByPhone(String phoneNumber);

    Page<UserVo> pageQuery(String name);
}
